package com.dog.framework.mqtt.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 * Mqtt client配置
 * </p>
 *
 * @author liuxk
 * @since 2023/11/21
 */
@ConfigurationProperties("spring.mqtt.client")
public class MqttClientProperties {

    /**
     * client id
     */
    private String id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 推送信息的连接地址，如果有多个，用逗号隔开
     */
    private String url;

    /**
     * 超时时间 单位为秒
     */
    private int timeout = 30;

    /**
     * 会话心跳时间 单位为秒
     */
    private int keepalive = 30;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public int getKeepalive() {
        return keepalive;
    }

    public void setKeepalive(int keepalive) {
        this.keepalive = keepalive;
    }

}
